﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TCKQKL.FrontEnd.DataModel
{
    public sealed class AccountDataUI
    {
        private string _stockId;
        private string _stockName;
        private decimal _tradingAmount;
        private decimal _trustedAmount;
        private decimal _nettingAmount;
        private decimal _lockedAmount;
        private decimal _avgPrice;
        private decimal _refPrice;
        private DateTime _lastModified;

        public AccountDataUI()
        {

        }
        public AccountDataUI(string stockId, string stockName, decimal tradingAmount, decimal trustedAmount, decimal nettingAmount, decimal lockedAmount,DateTime lastModified)
        {
            this._stockId = stockId;
            this._stockName = stockName;
            this._tradingAmount = tradingAmount;
            this._trustedAmount = trustedAmount;
            this._nettingAmount = nettingAmount;
            this._lockedAmount = lockedAmount;
            this._lastModified = lastModified;
        }
        public AccountDataUI(string stockId, string stockName, decimal tradingAmount, decimal trustedAmount, decimal nettingAmount, decimal lockedAmount, DateTime lastModified, decimal refPrice)
        {
            this._stockId = stockId;
            this._stockName = stockName;
            this._tradingAmount = tradingAmount;
            this._trustedAmount = trustedAmount;
            this._nettingAmount = nettingAmount;
            this._lockedAmount = lockedAmount;
            this._lastModified = lastModified;
            _refPrice = refPrice;
        }

        public decimal RefPrice
        {
            get { return _refPrice; }
            set { _refPrice = value; }
        }

        public string stockId
        {
            // Properties
            get { return _stockId; }
        }
        public string stockName
        {
            // Properties
            get { return _stockName; }
        }
        public decimal tradingAmount
        {
            // Properties 
            get { return _tradingAmount; }
            set { _tradingAmount = value;  }
        }
        public decimal nettingAmount
        {
            // Properties
            get { return _nettingAmount; }
        }
        public decimal lockedAmount
        {
            // Properties
            get { return _lockedAmount; }
        }
        public DateTime lastModified
        {
            // Properties
            get { return _lastModified; }
        }
        public decimal avgPrice
        {
            get { return _avgPrice; }
            set { _avgPrice = value; }
        }
        public decimal trustedAmount
        {
            get { return _trustedAmount; }
            set { _trustedAmount = value; }
        }

    }
}
